<h2><%=h l(:label_foo) %>#<%= @foo.id %></h2>

<% labelled_tabular_form_for :foo, @foo,
                             {:url => {:foo_id => @foo.id},
			      :html => {:multipart => true, :id => 'foo-form'}} do |f| %>
    <%= render :partial => 'foos/form', :locals => {:form => f} %>
    <%= f.submit l(:button_edit) %>
    <%= link_to_remote l(:label_preview), 
                       { :url => {:action => 'preview', :id => @project },
                         :method => 'post',
                         :update => 'preview',
                         :with => "Form.serialize('foo-form')",
                         :complete => "Element.scrollTo('preview')"
                       }, :accesskey => accesskey(:preview) %>
<% end %>
<div id="preview" class="wiki"></div>
